local BuffIcon = class("BuffIcon")
local GameUtils = require("utils.GameUtils")

function BuffIcon:ctor(config)
    self._config = config
    local object = G_ResourceManager:loadUI("Buff")
    local gameObject = GameUtils.instantiate(object)
    local luaBehaviour = gameObject:GetComponent(typeof(CS.LuaBehaviour))
    luaBehaviour:SetScriptEnv(self)
end

function BuffIcon:awake()
    self._imageIcon.sprite = G_ResourceManager:loadSprite("BuffAtlas", self._config.icon)
end

function BuffIcon:start()
end

function BuffIcon:update()
end

function BuffIcon:onDestroy()
end

return BuffIcon
